﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using MySql.Data.MySqlClient;

namespace DerptelligenceSite.Areas.Marein.Models.Blog
{
    public class BlogComment
    {
        public UInt32 id { get; set; }
        public BlogEntry entry { get; set; }
        public String content { get; set; }
        public String author_name { get; set; }
        public String author_mail { get; set; }
        public DateTime publishdate { get; set; }

		public BlogComment( IDataRecord record )
		{
			id = (UInt32)record["id"];
			entry = BlogDatabase.GetEntryByID( (UInt32)record["entryid"] );
			content = (String)record["content"];
			author_name = (String)record["author_name"];
			author_mail = (String)record["author_mail"];
			publishdate = (DateTime)record["publishdate"];
		}

		public BlogComment()
		{

		}
    }
}